﻿/****************************************************
	文件：ServerEnum.cs
	作者：HuskyT
	邮箱:  1005240602@qq.com
	日期：2020/05/02 11:48   	
	功能：服务器 业务 枚举
*****************************************************/

namespace HTServer.Proto
{
    /// <summary>
    /// 注册类型
    /// </summary>
    public enum RegisterType
    {
        Phong,
        Email,
    }
    /// <summary>
    /// 注册结果
    /// </summary>
    public enum RegisterResult
    {
        Success,
        Failure,
        /// <summary>
        /// 用户名已存在
        /// </summary>
        AlreadyExist,
        /// <summary>
        /// 验证码错误
        /// </summary>
        WrongCode,
        /// <summary>
        /// 禁止（封禁）
        /// </summary>
        Forbiddent,
    }
    /// <summary>
    /// 登录类型
    /// </summary>
    public enum LoginType
    {
        Phong,
        Email,
        WX,
        QQ,
        /// <summary>
        /// 自动登录
        /// </summary>
        Token,
    }
    /// <summary>
    /// 登录结果
    /// </summary>
    public enum LoginResult
    {
        Success,
        Failure,
        /// <summary>
        /// 用户名不存在
        /// </summary>
        UserNoExist,
        /// <summary>
        /// 密码错误
        /// </summary>
        WrongPwd,
        /// <summary>
        /// 自动登录超时
        /// </summary>
        TimeoutToken,
    }
}